package cn.gson.springboot.model.dao;

import java.util.List;
import java.util.Optional;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.DrugsYk;
//药品dao
public interface DrugsYkDao extends CrudRepository<DrugsYk, Integer>{
	//查询所有
	//public List<DrugsYk> findAll();
	@Query("select e from DrugsYk e where e.drugId=?1")
	  public DrugsYk cxdr(int a);
}
